package com.moshang.exportsql.config;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.concurrent.CompletableFuture;

@Component
@RequiredArgsConstructor
public class InInCacheCommandLineRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        //init1();
     //   init();
    }

//    public void init1() throws InterruptedException {
//        if (shouldExecutePostConstruct) {
//            metaClassService.clearSyncModelCache();
//        }
//    }
//
//    public CompletableFuture<Void> init() throws InterruptedException {
//        if (shouldExecutePostConstruct) {
//            return taskService.syncMetaClass("0","0");
//        }
//        return CompletableFuture.completedFuture(null);
//
//    }

}
